package cn.wolfcode.doamin;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@TableName("employee")
@Data
public class Employee {
    @TableId(type = IdType.AUTO,value = "id")
    private Long id;
    @TableField(value = "name",exist = true)
    private String name;
    private String password;
    private String email;
    private int age;
    private int admin;

    private Long deptId;
    @TableField(exist = false)
    private Department dept;
}
